home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-09-23 | 557 b | 30 lines | [TEXT/RLAB] |
- //-------------------------------------------------------------------//
-
- // Syntax: save ( )
- // save ( FILE )
-
- // Description:
-
- // The save function writes the contents of all the workspace
- // variables to a file. The default file, if none is specified is
- // "SAVE".
- //
-
- //-------------------------------------------------------------------//
-
- save = function ( FILE )
- {
- if (!exist (FILE))
- {
- FILE = "SAVE";
- }
- for (i in members ($$))
- {
- if (class ($$.[i]) != "function")
- {
- writeb (FILE, $$.[i]);
- }
- }
- close (FILE);
- };
-